//
//  MyOfferDepositTableViewHeaderFooterView.m
//  GLGW_Shoping
//
//  Created by yang on 2018/12/3.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "MyOfferDepositTableViewHeaderFooterView.h"

@implementation MyOfferDepositTableViewHeaderFooterView{
    GLGWLabel * depositLabel;
}

-(instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithReuseIdentifier:reuseIdentifier]) {
        GLGWView * topView = [[GLGWView alloc] initWithInSuperView:self.contentView];;
        topView.backgroundColor = [UIColor colorWithHexString:@"#F2F2F2"];
        [topView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.top.right.equalTo(self.contentView).offset(0);
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(10)));
        }];
        //
        depositLabel = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(16) theColor:[UIColor colorWithHexString:@"#EC5353"] inSuperView:self.contentView];
        depositLabel.text = @"已冻结卖家定金100元";
        [depositLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.contentView.mas_left).offset(kWidthProportion_In_iPhoneTriploid(15));
            make.top.equalTo(topView.mas_bottom).offset(kHeightProportion_In_iPhoneTriploid(20));
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(22)));
        }];
        //
        GLGWView * bottomLine = [[GLGWView alloc] initWithInSuperView:self.contentView];
        bottomLine.backgroundColor = [UIColor colorWithHexString:@"#F2F2F2"];
        [bottomLine mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.bottom.equalTo(self.contentView).offset(0);
            make.height.equalTo(@1);
        }];
    }
    return self;
}

@end
